<?php

class ErrorsManager
{
    private static $instance;

    public static function getInstance()
    {
        if(self::$instance == null)
        {
            $c = __CLASS__;
            self::$instance = new $c;
        }
        return self::$instance;
    }

    public function manageErrors($errors)
    {
        $str="";
        for($i=0;$i<count($errors);$i++)
          $str = $str . $errors[$i] .'*';
        return $str;
        
    }
}
?>


